package com.ehsy.service;

import com.dtflys.forest.annotation.Address;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Query;
import com.dtflys.forest.converter.json.ForestFastjson2Converter;
import com.dtflys.forest.converter.json.ForestFastjsonConverter;
import com.ehsy.common.ResponseVo;
import com.ehsy.model.Dept;
import com.ehsy.model.UserInfo;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author YanZhen_Li
 * @version 1.0
 * @title SnakeShapedFieldProcessingService
 * @description
 * @create 2024/6/18 15:51
 */
@Component
@Address(host = "127.0.0.1", port = "8080")
public interface SnakeShapedFieldProcessingService {
    @Get(
            url = "/test/request/json/body",
            decoder = ForestFastjsonConverter.class
    )
    ResponseVo<String> test1(@Query Map<String, Object> dept);

    @Get(
            url = "/test/request/json/body",
            decoder = ForestFastjsonConverter.class
    )
    ResponseVo<Dept> test2(@Query Map<String, Object> dept);
}
